<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>转成字符型</title>
	</head>
	<body>
		<script>
			var num1=num2=4,num3=8;
			console.log(String(num1));
			console.log(num1+num2+num3.toString());
			//toString()可以携带一个参数，输出对应进制的值
			console.log(num3.toString(2));	
		</script>
	</body>
</html>